//import com.google.gson.Gson;
//import com.google.gson.JsonNull;
//import org.apache.commons.collections.MapUtils;
//
//import java.io.UnsupportedEncodingException;
//import java.net.URLEncoder;
//import java.util.HashMap;
//import java.util.Map;
//
//public class Gson测试 {
//    public static void main(String[] args) throws UnsupportedEncodingException {
//        Gson gson = new Gson();
//        Map<String, Object> map = new HashMap<>();
//        map.put("age", 21);
//        map.put("name", "test");
//        map.put("sex", "male");
//        System.out.println(gson.toJson(map));
//        String mapStr = "{\"sex\":\"male\",\"name\":\"test\",\"age\":21}";
//        Map map1 = gson.fromJson(mapStr, Map.class);
//        System.out.println(MapUtils.getIntValue(map1, "age"));
//        JsonNull jsonNull = JsonNull.INSTANCE;
//        System.out.println(jsonNull);
//
//        String str = "abc_eee{}%sll%s";
//        System.out.println(String.format(str, "1234", "212"));
//
//        System.out.println(URLEncoder.encode("中通快运", "UTF-8"));
//        String resStr = "{\"list\":[{\"logisticsProviderCode\":\"GPH\",\"waybillCode\":\"201689739857\",\"orderId\":\"1\",\"isSuccess\":true,\"reason\":\"\"}]}";
//    }
//}
